package com.cvit.dao;

import com.cvit.model.Admission;
import com.cvit.model.AdmissionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AdmissionMapper {
	
	/**
     * 查询录取表
     * */
	List<Admission> selectAll(AdmissionExample example);
	
	/**
	 * 根据ID、考生号、身份证号、名字查询
	 * */
	Admission selectAdmissionBy(Admission record);
	
	/**
	 * 根据学生号查询
	 * */
	Admission selectByExamineeId(String examineeId);
	
	/**
	 * 按学生号删除
	 * */
	void deleteByExamineeId(String examineeId);
	
    long countByExample(AdmissionExample example);

    int deleteByExample(AdmissionExample example);

    int deleteByPrimaryKey(String id);

    int insert(Admission record);

    int insertSelective(Admission record);

    List<Admission> selectByExample(AdmissionExample example);

    Admission selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Admission record, @Param("example") AdmissionExample example);

    int updateByExample(@Param("record") Admission record, @Param("example") AdmissionExample example);

    int updateByPrimaryKeySelective(Admission record);

    int updateByPrimaryKey(Admission record);

	Admission selectByCardId(String cardId);

	
    
}